<template>
  <div class="applogin">
    <van-loading size="50px" vertical>正在进行身份验证...</van-loading>
  </div>
</template>

<script>
import axios from "axios";

export default {
  created() {
    let that = this;
    console.log(this.$route.query.appKey);
    axios
      .post("/bhtong/app/login", {
        appKey: this.$route.query.appKey,
        appSecret: this.$route.query.appSecret,
        mobile: this.$route.query.mobile,
      })
      .then(function (data, res) {
        if (data.data.code === "v") {
          that.$toast.success(data.data.msg);
          that.$router.push({
            path: "/order",
          });
        } else {
          that.$notify(data.data.msg);
        }
      });
  },
};
</script>
<style>
.applogin {
  margin: 200 auto;
}
</style>